Repository navigation
Add the parcel reference to delivery events for a per-parcel funnel - #39
Merged
Merged
Conversation
…ch parcel A delivery involves two people: the sender posts and requests, the carrier confirms pickup and delivery. A funnel that follows one person therefore always showed 0% for pickup and delivery. Each delivery event now carries shipment_ref, the parcel's random reference (no names), so the funnel can follow parcels instead of people. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KMX8YeLPuJjG5aL1vT4uuP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
A delivery involves two people: the sender posts the parcel and requests a carrier, and the carrier confirms pickup and delivery. A PostHog funnel follows one person, so it always showed 0% for pickup and delivery even when deliveries succeeded.
What changes
Each delivery event now includes
shipment_ref, the parcel's existing random reference (for examples-mfx3k2abc). It contains no names or codes. This lets a funnel follow each parcel from posted to delivered.Events updated:
shipment_posted,delivery_request_created,delivery_acceptance_recorded,pickup_confirmed,delivery_confirmed,delivery_request_declined,delivery_request_withdrawn,delivery_disputed.Checked
npm run buildsucceeds.Events sent before this change have no
shipment_ref, so the funnel needs a few new test parcels after it is merged.Generated by Claude Code